package com.ctshk.rpc.order.ship.req;

import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * <p>
 * 船票往返订单
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-16
 */
@Data
@ApiModel(value = "ShipOrder对象", description = "船票订单")
public class ShipOrderRouteProductReq extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "船票产品id不能为空")
    @ApiModelProperty(value = "船票产品id")
    private String productId;

    @NotNull(message = "出发时间不能为空")
    @ApiModelProperty(value = "出发时间")
    private LocalDate startDate;

    @NotNull(message = "票数不能为空")
    @ApiModelProperty(value = "票数")
    private Integer ticketNumber;
}
